package com.weixinli.biz.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import com.weixinli.beans.UserComment;
import com.weixinli.biz.IUserCommentBiz;
import com.weixinli.dao.IUserCommentDao;

@Scope("prototype")
@Service("iUserCommentBiz")
public class UserCommentBizImpl implements IUserCommentBiz {
	@Resource(name="iUserCommentDao")
	private IUserCommentDao iUserCommentDao;
	
	public void setiUserCommentDao(IUserCommentDao iUserCommentDao) {
		this.iUserCommentDao = iUserCommentDao;
	}

	public int addUserComment(UserComment uc) {
		return iUserCommentDao.addUserComment(uc);
	}

	public UserComment newOne(int cid) {
		return iUserCommentDao.newOne(cid);
	}

	public List<UserComment> FMgetAllComment(Integer area_id, Integer objid) {
		return  iUserCommentDao.FMgetAllComment(area_id, objid);
	}
	
	public List<UserComment> AllNote(int min,int max){
		return iUserCommentDao.AllNote(min,max);
	};

	public int addUserNote(UserComment uc) {
		return iUserCommentDao.addUserNote(uc);
	}
	public int delUserComment(Integer cid) {
		return 0;
	}

	public int getTotalComment(Integer objid, Integer area_id) {
		return iUserCommentDao.getTotalComment(objid, area_id);
	}

	public int getCommentNum(Integer objid, Integer area_id) {
		return 0;
	}

	public List<UserComment> getPageComment(Integer pageNo, Integer pageSize, Integer objid, Integer area_id) {
		return iUserCommentDao.getPageComment(pageNo, pageSize, objid, area_id);
	}

	public int getTotalUserComment(Integer w_uid) {
		return 0;
	}

	public int FMaddUserComment(Integer id, Integer objid, Integer area_id, String content, String time) {
		return 0;
	}

	public List<UserComment> FMgetComment(Integer area_id, Integer w_id, Integer objid) {
		return null;
	}

	public List<UserComment> getOneObjComment(Integer objid, Integer area_id) {
		return iUserCommentDao.getOneObjComment(objid, area_id);
	}

	public List<UserComment> getAllComment(Integer area_id) {
		return null;
	}

}
